package com.skywolf.chem.match.params.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 *
 * 活动组别分页列表详情
 * @Author sj
 * Date on 2021/9/26  14:30
 * @Version 1.0
 */
@Data
public class MatchGroupPageInfoQueryVo {

    @ApiModelProperty("赛事编号")
    private Long id;

    @ApiModelProperty("赛事名称")
    private String matchName;

    @ApiModelProperty("组别列表")
    private List<MatchGroupInfoQueryVo> groupInfoList;

    /**
     * 组别详情
     */
    @Data
    public static class MatchGroupInfoQueryVo{
        @ApiModelProperty("性别 0为女 1为男 2为不限")
        private Integer gender;

        @ApiModelProperty("组别编号")
        private Long id;

        @ApiModelProperty(value = "组别名称")
        private String groupName;

        @ApiModelProperty(value = "价格")
        private BigDecimal price;

        @ApiModelProperty(value = "年龄（最小年龄-最大年龄)")
        private String age;

        @ApiModelProperty(value = "全部参赛人数")
        private Integer stock;

        @ApiModelProperty(value = "剩余人数")
        private Integer surplusStock;

        @ApiModelProperty(value = "组别类型名称")
        private String groupTypeName;

        @ApiModelProperty(value = "地址（省 市 县 详细地址)")
        private String address;

        @ApiModelProperty(value = "比赛时间(开始时间-结束时间)")
        private String matchTime;

        @ApiModelProperty(value = "组别状态  0为可报名 1为报名人数已满  2已报名")
        private Integer status;


        @ApiModelProperty(hidden = true)
        @JsonIgnore
        private LocalDateTime createdTime;
    }
}
